<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="/js/axios.js"></script>
    <script src="/js/jquery-1.11.0.min.js"></script>
</head>

<body>
    <script>
        // axios({
        //     method: 'GET',
        //     url: 'http://ajax.frontend.itheima.net:3006/api/jsonp',

        // }).then(function (res) {
        //     console.log(res);
        // })
        // $.ajax({
        //     method: 'GET',

        //     url: 'http://www.liulongbin.top:3006/api/jsonp',//报错 跨域请求 

        //     data: {
        //         name: 'pink',
        //         age: 20
        //     },
        //     success: function (res) {
        //         console.log(res.data);
        //     }
        // })
        var  data = 6
        
        function Data() {
            this.data = 7
        }
        Data.prototype.getData= () => {
            console.log(this);
            return this.data
          
        }
        console.log(new Data().getData());
        // console.log(new Data());
    </script>
</body>

</html>